package service.impl;

import dao.RainQualityDao;
import dao.impl.RainQualityDaoImpl;
import entity.Rainquality;
import service.RainQualityService;

import java.util.Date;
import java.util.List;

/**
 * @Author: DELL
 * @Since: 2024/6/24 10:00
 * @Description:
 */
public class RainQualityServiceImpl implements RainQualityService {
RainQualityDao rainQualityDao=new RainQualityDaoImpl();
    @Override
    public List<Rainquality> getAll() {
        return rainQualityDao.getAll();
    }

    @Override
    public boolean add(String districtName, String monitorTime, int rain, String monitoringStation, String monitoringAddress) {
        int hang=rainQualityDao.add(districtName,monitorTime,rain,monitoringStation,monitoringAddress);
        if (hang>0){
            return true;
        }
        return false;
    }
}
